// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'open_access_auth',
			'access_name',
			'access_type',
			'name',
			'uid',
			'update_time',
			'srfkey',
			'srfdataaccaction',
			'person_id',
			'access_id',
			'srfmajortext',
			...wfKey,
		];
	}

	get access_name() {
		return this.$DO.access_name;
	}

	set access_name(value: any) {
		this.$DO.access_name = value;
	}
	get access_type() {
		return this.$DO.access_type;
	}

	set access_type(value: any) {
		this.$DO.access_type = value;
	}
	get name() {
		return this.$DO.name;
	}

	set name(value: any) {
		this.$DO.name = value;
	}
	get uid() {
		return this.$DO.uid;
	}

	set uid(value: any) {
		this.$DO.uid = value;
	}
	get update_time() {
		return this.$DO.update_time;
	}

	set update_time(value: any) {
		this.$DO.update_time = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get person_id() {
		return this.$DO.person_id;
	}

	set person_id(value: any) {
		this.$DO.person_id = value;
	}
	get access_id() {
		return this.$DO.access_id;
	}

	set access_id(value: any) {
		this.$DO.access_id = value;
	}
	get srfmajortext() {
		return this.$DO.name;
	}

	set srfmajortext(value: any) {
		this.$DO.name = value;
	}

	set open_access_auth(value: any) {
		this.$DO.id = value;
	}
	get open_access_auth() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
